﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="QuoteView.aspx.cs" Inherits="BySoft.Web.Site.Order.QuoteView" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.Master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Src="../UserControl/SuggestTextBox2.ascx" TagName="SuggestTextBox2"
    TagPrefix="uc1" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        })

    </script>

    <style type="text/css">
        table {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <h1 class="tit">订单管理 >> <a href="QuoteList.aspx">报价单</a> >> 查看</h1>
    <div class="tableStyle2">
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <table cellpadding="0" cellspacing="0" id="tBase" runat="server">
                    <tr>
                        <th class="left2">报价单号码：</th>
                        <td class="right2"><asp:Label ID="lblQuoteID" CssClass="lblreadonly" runat="server"></asp:Label></td>
                        <th class="left2">日期：</th>
                        <td class="right2">
                            <asp:Label ID="lblBillDate" CssClass="lblreadonly" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">客户编号：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly" ID="txtCustomerID" runat="server"></asp:Label>
                        </td>
                        <th class="left2">客户名称：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly" ID="txtCustomerName" runat="server"></asp:Label>
                        </td>
                    </tr>
                     <tr>
                        <th class="left2">联系人：</th>
                        <td class="right2">
                            <asp:Label ID="txtContactName" runat="server" CssClass="lblreadonly"></asp:Label>
                        </td>
                        <th class="left2">联系电话：</th>
                        <td class="right2">    
                            <asp:Label ID="txtMobile" runat="server" CssClass="lblreadonly"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">送货公司：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly" ID="txtSendCustomerName" runat="server"></asp:Label>
                        </td>
                        <th class="left2">送货地址：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly" ID="txtAddr" runat="server"></asp:Label>
                        </td>
                    </tr>
                     <tr>
                        <th class="left2">送货人员：</th>
                        <td class="right2">
                            <asp:Label ID="txtSendContactName" runat="server" CssClass="lblreadonly"></asp:Label>
                        </td>
                        <th class="left2">送货联系电话：</th>
                        <td class="right2">    
                            <asp:Label ID="txtSendMobile" runat="server" CssClass="lblreadonly"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">币别：
                        </th>
                        <td class="right2">
                            <asp:Label ID="lblCurrencyName" runat="server" CssClass="lblreadonly" ></asp:Label>
                        </td>
                        <th class="left2"></th>
                        <td class="right2"></td>
                    </tr>
                    <tr runat="server" id="TaxTr" style="display: none;">
                        <th class="left2">单价是否含税：
                        </th>
                        <td class="right2"><asp:Label ID="lblIsTax" runat="server" CssClass="lblreadonly"></asp:Label></td>
                        <th class="left2">税率：
                        </th>
                        <td class="right2">
                            <asp:Label ID="txtTaxRate" runat="server" CssClass="lblreadonly"></asp:Label>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="tableStyle">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">明细</a></li>
            </ul>
            <div id="tabs-1" class="tableStyle">
                <div style="width: 100%; padding-bottom: 10px">
                    <div align="right">
                    </div>
                </div>
                <div>
                    <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                        AutoGenerateColumns="false" AllowCascade="false">
                        <Columns>
                            <asp:TemplateField HeaderText="报价单明细编号" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden" HeaderStyle-CssClass="Hidden">
                                <ItemTemplate>
                                    <asp:Label ID="lblQuoteDetailID" Text='<%#Eval("QuoteDetailID") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="项次">
                                <ItemTemplate>
                                    <asp:Label ID="lblOrderNum" Text='<%#Eval("OrderNum") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="产品编号">
                                <ItemTemplate>
                                    <asp:Label ID="lblProductID" Text='<%#Eval("ProductID") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="产品名称">
                                <ItemTemplate>
                                    <asp:Label ID="lblProductName" Text='<%#Eval("ProductName") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="单位">
                                <ItemTemplate>
                                    <asp:Label ID="lblUnit" Text='<%#Eval("Unit") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="客户零件号">
                                <ItemTemplate>
                                    <asp:Label ID="txtCustomerPartNo" Text='<%#Eval("CustomerPartNo") %>' runat="server" ></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="数量">
                                <ItemTemplate>
                                    <asp:Label ID="txtNums" Text='<%#Eval("Nums") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="单价">
                                <ItemTemplate>
                                    <asp:Label ID="txtPrice" Text='<%#Eval("Price") %>' runat="server" ></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="金额">
                                <ItemTemplate>
                                    <asp:Label ID="txtAmount" Text='<%#Eval("Amount") %>' runat="server" Enabled="false" Width="80px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="税额">
                                <ItemTemplate>
                                    <asp:Label ID="txtTax" Text='<%#Eval("Tax") %>' runat="server" Enabled="false" Width="80px"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:SGridView>
                </div>
            </div>
        </div>
    </div>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
            <tr>
                <td colspan="4">
                    <label class="btnStylec png_bg">
                        <input type="button" id="Button2" value="返回" runat="server" onclick="window.location = 'QuoteList.aspx'" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
